package db9;

import java.util.Scanner;

public class HuiWenShu {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
//        System.out.println("判断是否是回文数");
        System.out.println("请输入一个整数");
        String str = sc.next();
        if (str.equals(new StringBuilder(str).reverse().toString())){
            System.out.println("是回文数");
        }else {
            System.out.println("不是");
        }
    }
}
